[Unit]
Description=Kafka
After=zookeeper.service network.target

[Service]
Type=forking
User=appadmin
Group=users
Environment=JAVA_HOME={{ java_home }}
ExecStart={{ install_path }}/kafka/bin/kafka-server-start.sh -daemon {{ install_path }}/kafka/config/server.properties
ExecStop={{ install_path }}/kafka/bin/kafka-server-stop.sh
Restart=always

[Install]
WantedBy=multi-user.target